﻿namespace Yaaf.WP7.NativeAccess.ComWrapper.HTC.COM_NativeAccess
{
    using System;
    using System.Runtime.InteropServices;

    [ComImport, Guid("D7E9FA06-9368-45E8-A938-6FB2ACF2CA1B"), InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
    internal interface INativeRegistry
    {
        [PreserveSig]
        int OpenSubKey(UIntPtr A_0, string A_1, out UIntPtr A_2);
        [PreserveSig]
        int Close(UIntPtr A_0);
        [PreserveSig]
        int GetValueType(UIntPtr A_0, string A_1, out uint A_2);
        [PreserveSig]
        int GetValueSize(UIntPtr A_0, string A_1, out uint A_2);
        [PreserveSig]
        int GetDwordValue(UIntPtr A_0, string A_1, out uint A_2);
        [PreserveSig]
        int GetStringValue(UIntPtr A_0, string A_1, [MarshalAs(UnmanagedType.LPWStr)] out string A_2);
    }
}

